package com.naiterui.ehp.bs.pharmacist.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.naiterui.ehp.bp.bo.cms.SysUserBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;

/**
 * 调用cms
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/5/18 11:48
 **/
@FeignClient(name = "phCmsapiFeignClient", url = "${ehp.domain.cmsapi}", configuration = FeignConfiguration.class)
public interface CmsFeignClient {

    /**
     * 通过ID获取用户信息
     *
     * @param userId
     * @return
     */
    @GetMapping("/inner/sys/user/info/{userId}")
    SysUserBO info(@PathVariable("userId") Long userId);
}
